#define _CRT_SECURE_NO_WARNINGS 1
#include"list.h"

void test_reverse_it1()
{
	sbh::list<int> l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);
	l.push_back(5);

	sbh::list<int>::iterator it = l.begin();
	cout << "it" << endl;
	while (it != l.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

	cout << "reverse_it" << endl;
	sbh::list<int>::reverse_iterator r_it = l.rbegin();
	while (r_it != l.rend())
	{
		cout << *r_it << " ";
		++r_it;
	}
	cout << endl;
}

int main()
{
	test_reverse_it1();

	return 0;
}